<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>创建新用户</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

</head>
<body>

<div class="layui-container">
  <div class="layui-row">
    <div class="layui-col-md6">
      <form class="layui-form" action="user/insert/index.php" method="post">
    
        <div class="layui-form-item">
          <label class="layui-form-label">用户名</label>
          <div class="layui-input-block">
            <input type="text" name="username" placeholder="请输入用户名" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">密码</label>
          <div class="layui-input-block">
            <input type="password" name="password" placeholder="请输入密码" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">邮箱</label>
          <div class="layui-input-block">
            <input type="text" name="bdmail" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">容量</label>
          <div class="layui-input-block">
            <input type="number" name="capacity" placeholder="请输入容量" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">流量</label>
          <div class="layui-input-block">
            <input type="number" name="rate" placeholder="请输入流量" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">已用容量</label>
          <div class="layui-input-block">
            <input type="number" name="rated" placeholder="请输入已用容量" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">已用流量</label>
          <div class="layui-input-block">
            <input type="number" name="capacityed" placeholder="请输入已用流量" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">VIP日期</label>
          <div class="layui-input-block">
            <input type="text" name="vip" id="vip" placeholder="请选择VIP日期" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>


<script>
layui.use(['form', 'laydate'], function(){
  var form = layui.form;
  var laydate = layui.laydate;
  laydate.render({
    elem: '#vip', 
    type: 'datetime', 
    format: 'yyyy-MM-dd HH:mm:ss' 
  });
});
</script>

</body>
</html>